﻿@* Beinhaltet alle Links auf die der Administrator auf der Adminoberfläche zugroff hat. *@
@if (Html.CurrentController() == EControllers.Administration || Html.CurrentController() == EControllers.DynamicData)
{
    @Html.RouteLink(Navigation.AdministrationRESX, RouteNames.Categories.ToString(), new { controller = EControllers.Administration.ToString(), category = EFCategoryTypes.UserRights.ToString(), action = EActionAdministration.CategoriesList.ToString() }, new { @class = "brand" })
    <ul class="nav">
        <li>@Html.RouteLink(Navigation.ViewUserCategoriesRESX, RouteNames.Categories.ToString(), new { controller = EControllers.Administration.ToString(), category = EFCategoryTypes.UserCategory.ToString(), action = EActionAdministration.CategoriesList.ToString() })</li>
        <li>@Html.RouteLink(Navigation.ViewUserGroupsRESX, RouteNames.Categories.ToString(), new { controller = EControllers.Administration.ToString(), category = EFCategoryTypes.UserGroups.ToString(), action = EActionAdministration.CategoriesList.ToString() })</li>
        <li>@Html.RouteLink(Navigation.ViewUserRightsRESX, RouteNames.Categories.ToString(), new { controller = EControllers.Administration.ToString(), category = EFCategoryTypes.UserRights.ToString(), action = EActionAdministration.CategoriesList.ToString() })</li>
        @if (WebRights.Right().Check(EUserRights.CreateDynamicDataTypes))
        {
            <li>@Html.RouteLink(Navigation.DynamicDataTypesCategoriesRESX, RouteNames.Categories.ToString(), new { controller = EControllers.Administration.ToString(), category = EFCategoryTypes.DynamicDataTypeCategory.ToString(), action = EActionAdministration.CategoriesList.ToString() })</li>
            <li>@Html.ActionLink(Navigation.ListDynamicDataTypesRESX, EActionDynamicData.DynamicDataTypesList.ToString(), EControllers.DynamicData.ToString())</li>
        }
    </ul>
}
